<b>This text will be displayed in bold</b>
2024-11-25
These documents typically contain 3 main types of content, integrating code and natural language in a way that is called “literate programming”.
These are languages that can be written using any plain text editor. They use markup elements to define how text should be displayed or printed.
HTML is used to structure content on the web.
<b>This text will be displayed in bold</b>
LaTeX is used for academic and technical documents.
\textbf{This text will be displayed in bold}
Markdown is a lightweight markup language.
**This text will be displayed in bold**
Different programming languages allow us to execute code to generate results or perform tasks.
The output from executing code often results in visualizations or printed results. Below are the corresponding outputs for each language:
Call: glm(formula = confirmed ~ age, family = binomial, data = df)
Coefficients:
(Intercept) age
1.312275 0.001292
Degrees of Freedom: 65668 Total (i.e. Null); 65667 Residual
Null Deviance: 66000
Residual Deviance: 66000 AIC: 66000
| c1 | c2 |
|---|---|
| setosa | 5.1 |
| setosa | 4.9 |
| setosa | 4.7 |
| setosa | 4.6 |
| setosa | 5.0 |
Documents can be rendered in different type of outputs e.g., MS Word, PDF, HTML, PowerPoint, etc.
Pandoc is one of the tool that allows this conversion.
.qmd extension.Both knitr and Jupyter serve as engines to execute code embedded within a document, but they work in different programming environments.
This R package will read the code chunks, execute it, and ‘knit’ it back into the document. This is how tables and graphs are included alongside the text.
Jupyter is a popular engine for running Python code interactively. It supports multiple programming languages, but Python is the most common.
Swiss TPH, Research-IT